|
|
|
| 4. Select the standard form About Dialog from this list of templates to add it to the project. 5. After adding this dialog box to the project, you should see a form in your project that looks like the one shown in Figure 11.13. | | | | |
|
|
|
|
Figure 11.13
The standard About Dialog template. |
|
|
|
|  | You can see in Figure 11.12 that there are several types of dialog boxes you can add to your project. You use these different dialog boxes as templates, and you can change them once theyre added to your project. |
|
|
|
|
|
|
The standard About dialog box, shown in Figure 11.13, has several areas you need to fill in at runtime. First is the Application Title label. In the Form_Load() event, youll see the following code that is included with this template: |
|
|
|
 |
|
|
|
|
Private Sub Form_Load()
Me.Caption = "About " & App.Title
lblVersion.Caption = "Version " & App.Major & _
"." & App.Minor & _
"." & App.Revision
lblTitle.Caption = App.Title
End Sub |
|
|
|
|
|
|
|
|
In this Form_Load() event, you can see that "About " and the applications Title property are placed in the Caption property. This Title property is set in the Project Properties dialog box. The App object is an object that receives these different properties when your application starts up. The App object also receives the |
|
|
|
|
|